package com.cskaoyan.bean.pojo;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class GoodsProduct {

    private Integer id;

    private Integer goodsId;
    @NotNull(message = "商品规格值列表不能为空")
    private String[] specifications;
    @Min(value = 0, message = "商品货品价格必须大于0")
    private BigDecimal price;
    @Min(value = 0, message = "商品数量必须大于0")
    private Integer number;

    private String url;

    private Date addTime;

    private Date updateTime;

    private Boolean deleted;


}